package com.youlai.boot.modules.merchant.model;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface MerchantConverter {

    MerchantVO toVO(Merchant merchant);

    MerchantForm toForm(Merchant merchant);

    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    Merchant toEntity(MerchantForm form);

}
